/*
 * Integer.cpp
 *
 *  Created on: 2012-5-17
 *      Author: esf
 */

#include "../headfiles/Integer.h"
#include <iostream>
#include <sstream>
namespace java_lang {

Integer::Integer() {
//	std::cout<<"create Integer";
}
Integer::Integer(int value) {
//	std::cout<<"create Integer"<<std::endl;
	this->value = value;
}
Integer::~Integer() {
}
std::string Integer::toString() {
	std::stringstream ss;
	ss << this->value;
	std::string str;
	ss >> str;
	return str;
}
int Integer::valueOf() {
	return this->value;
}

} /* namespace collection */
